package com.soufang.soufang.base;

import lombok.Data;

/**
 * Datatables响应结构
 *
 */
@Data
public class ApiDataTableResponse extends ApiResponse {
    private int draw;
    private long recordsTotal; //字段名不能错
    private long recordsFiltered; //字段名不能错

    public ApiDataTableResponse(ApiResponse.Status status) {
        this(status.getCode(), status.getStandardMessage(), null);
    }

    public ApiDataTableResponse(int code, String message, Object data) {
        super(code, message, data);
    }


}
